﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DatabaseViewModel.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   The database view model.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace mPassRT.ViewModels.Databases
{
    using mPassRT.Common;
    using mPassRT.Services;

    /// <summary>The database view model.</summary>
    public class DatabaseViewModel : BindableBase
    {
        #region Constructors and Destructors

        /// <summary>Initializes a new instance of the <see cref="DatabaseViewModel"/> class.</summary>
        /// <param name="database">The database.</param>
        public DatabaseViewModel(Database database)
        {
            this.Database = database;
        }

        #endregion

        #region Public Properties

        /// <summary>Gets the database.</summary>
        public Database Database { get; private set; }

        /// <summary>Gets the name.</summary>
        public string Name
        {
            get
            {
                return this.Database.Name;
            }
        }

        #endregion
    }
}